package com.mapforge.listener;

import com.mapforge.map.TileLayer;
import com.mapforge.map.tools.undo.tilelayeredit.AbstractTileLayerEdit;

/**
 * Represents a change occurring on a tile layer.
 * 
 * @author Will Morrison
 * 
 */
public class TileLayerEditEvent extends BasicEvent {
	/** */
	private TileLayer tileLayer;

	/** */
	private AbstractTileLayerEdit layerEdit;

	/**
	 * 
	 * @param tileLayer
	 * @param oldValue
	 */
	public TileLayerEditEvent(Object source, TileLayer tileLayer,
			AbstractTileLayerEdit layerEdit) {
		super(source);
		this.tileLayer = tileLayer;
		this.layerEdit = layerEdit;
	}

	public AbstractTileLayerEdit getEdit() {
		return layerEdit;
	}

	/** */
	public TileLayer getTileLayersChanged() {
		return tileLayer;
	}

	/** */
	public AbstractTileLayerEdit getLayerChangeType() {
		return layerEdit;
	}
}
